.class public Lcom/example/m6wmr/MarketActivity;
.super Landroid/app/Activity;
.source "MarketActivity.java"

# interfaces
.implements Lcom/wmr/Lstview/XListView$IXListViewListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/MarketActivity$OnScrollListenerImple;
    }
.end annotation


# static fields
.field public static h:Landroid/os/Handler;

.field public static market:Lcom/example/m6wmr/MarketActivity;


# instance fields
.field private ListViewOrder:Lcom/wmr/Lstview/XListView;

.field private areaid:Ljava/lang/String;

.field private areals:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/AreaBean;",
            ">;"
        }
    .end annotation
.end field

.field private areamapname:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private helper:Ldbclass/DBOpenHelper;

.field private is_loading:Z

.field private is_showpage:Z

.field m:Lmyapp/MyApp;

.field private mPopupWindow:Landroid/widget/PopupWindow;

.field private mPopupWindowHeight:I

.field private mPopupWindowWidth:I

.field private mScreenHeight:I

.field private mScreenWidth:I

.field private mcontext:Landroid/content/Context;

.field myLoginView:Landroid/view/View;

.field orderby:Landroid/widget/LinearLayout;

.field private orderbypopwidth:I

.field orderlist:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private ordervalue:I

.field private page:I

.field pscost:Landroid/widget/LinearLayout;

.field pscostlist:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private pscostpopwidth:I

.field private pscostvalue:I

.field private searchvalue:Ljava/lang/String;

.field private sendid:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ShopBean;",
            ">;"
        }
    .end annotation
.end field

.field shoptype:Landroid/widget/LinearLayout;

.field private shoptypels:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ShoptypeBean;",
            ">;"
        }
    .end annotation
.end field

.field private shoptypepopwidth:I

.field private shoptypevalue:I

.field private spbd:Ldata/ShopData2;

.field private temshopls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ShopBean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 63
    const/4 v0, 0x0

    sput-object v0, Lcom/example/m6wmr/MarketActivity;->h:Landroid/os/Handler;

    return-void
.end method

.method public constructor <init>()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 57
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 59
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/MarketActivity;->areaid:Ljava/lang/String;

    .line 60
    iput-object v2, p0, Lcom/example/m6wmr/MarketActivity;->m:Lmyapp/MyApp;

    .line 64
    iput-object v2, p0, Lcom/example/m6wmr/MarketActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 75
    iput-object v2, p0, Lcom/example/m6wmr/MarketActivity;->shoptype:Landroid/widget/LinearLayout;

    .line 76
    iput-object v2, p0, Lcom/example/m6wmr/MarketActivity;->orderby:Landroid/widget/LinearLayout;

    .line 77
    iput-object v2, p0, Lcom/example/m6wmr/MarketActivity;->pscost:Landroid/widget/LinearLayout;

    .line 78
    iput v1, p0, Lcom/example/m6wmr/MarketActivity;->shoptypepopwidth:I

    .line 79
    iput v1, p0, Lcom/example/m6wmr/MarketActivity;->orderbypopwidth:I

    .line 80
    iput v1, p0, Lcom/example/m6wmr/MarketActivity;->pscostpopwidth:I

    .line 81
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/MarketActivity;->pscostlist:Ljava/util/List;

    .line 82
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/MarketActivity;->orderlist:Ljava/util/List;

    .line 83
    iput v1, p0, Lcom/example/m6wmr/MarketActivity;->pscostvalue:I

    .line 84
    iput v1, p0, Lcom/example/m6wmr/MarketActivity;->ordervalue:I

    .line 85
    iput v1, p0, Lcom/example/m6wmr/MarketActivity;->shoptypevalue:I

    .line 86
    iput-boolean v1, p0, Lcom/example/m6wmr/MarketActivity;->is_loading:Z

    .line 88
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/MarketActivity;->searchvalue:Ljava/lang/String;

    .line 89
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/MarketActivity;->areamapname:Ljava/lang/String;

    .line 92
    iput-object v2, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    .line 94
    iput v3, p0, Lcom/example/m6wmr/MarketActivity;->page:I

    .line 95
    iput-boolean v3, p0, Lcom/example/m6wmr/MarketActivity;->is_showpage:Z

    .line 96
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/MarketActivity;->sendid:Ljava/lang/String;

    .line 57
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/MarketActivity;)Z
    .locals 1

    .prologue
    .line 95
    iget-boolean v0, p0, Lcom/example/m6wmr/MarketActivity;->is_showpage:Z

    return v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/MarketActivity;)I
    .locals 1

    .prologue
    .line 94
    iget v0, p0, Lcom/example/m6wmr/MarketActivity;->page:I

    return v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/MarketActivity;)V
    .locals 0

    .prologue
    .line 802
    invoke-direct {p0}, Lcom/example/m6wmr/MarketActivity;->onLoad()V

    return-void
.end method

.method static synthetic access$11(Lcom/example/m6wmr/MarketActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->areamapname:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$12(Lcom/example/m6wmr/MarketActivity;)Landroid/widget/PopupWindow;
    .locals 1

    .prologue
    .line 67
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    return-object v0
.end method

.method static synthetic access$13(Lcom/example/m6wmr/MarketActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 88
    iput-object p1, p0, Lcom/example/m6wmr/MarketActivity;->searchvalue:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$14(Lcom/example/m6wmr/MarketActivity;Landroid/widget/PopupWindow;)V
    .locals 0

    .prologue
    .line 67
    iput-object p1, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    return-void
.end method

.method static synthetic access$15(Lcom/example/m6wmr/MarketActivity;)V
    .locals 0

    .prologue
    .line 504
    invoke-direct {p0}, Lcom/example/m6wmr/MarketActivity;->initshoptypeWindow()V

    return-void
.end method

.method static synthetic access$16(Lcom/example/m6wmr/MarketActivity;)V
    .locals 0

    .prologue
    .line 555
    invoke-direct {p0}, Lcom/example/m6wmr/MarketActivity;->initorderbyWindow()V

    return-void
.end method

.method static synthetic access$17(Lcom/example/m6wmr/MarketActivity;)V
    .locals 0

    .prologue
    .line 594
    invoke-direct {p0}, Lcom/example/m6wmr/MarketActivity;->initpscostWindow()V

    return-void
.end method

.method static synthetic access$18(Lcom/example/m6wmr/MarketActivity;I)V
    .locals 0

    .prologue
    .line 78
    iput p1, p0, Lcom/example/m6wmr/MarketActivity;->shoptypepopwidth:I

    return-void
.end method

.method static synthetic access$19(Lcom/example/m6wmr/MarketActivity;I)V
    .locals 0

    .prologue
    .line 79
    iput p1, p0, Lcom/example/m6wmr/MarketActivity;->orderbypopwidth:I

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/MarketActivity;I)V
    .locals 0

    .prologue
    .line 94
    iput p1, p0, Lcom/example/m6wmr/MarketActivity;->page:I

    return-void
.end method

.method static synthetic access$20(Lcom/example/m6wmr/MarketActivity;I)V
    .locals 0

    .prologue
    .line 80
    iput p1, p0, Lcom/example/m6wmr/MarketActivity;->pscostpopwidth:I

    return-void
.end method

.method static synthetic access$21(Lcom/example/m6wmr/MarketActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->shoptypels:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$22(Lcom/example/m6wmr/MarketActivity;I)V
    .locals 0

    .prologue
    .line 85
    iput p1, p0, Lcom/example/m6wmr/MarketActivity;->shoptypevalue:I

    return-void
.end method

.method static synthetic access$23(Lcom/example/m6wmr/MarketActivity;I)V
    .locals 0

    .prologue
    .line 84
    iput p1, p0, Lcom/example/m6wmr/MarketActivity;->ordervalue:I

    return-void
.end method

.method static synthetic access$24(Lcom/example/m6wmr/MarketActivity;I)V
    .locals 0

    .prologue
    .line 83
    iput p1, p0, Lcom/example/m6wmr/MarketActivity;->pscostvalue:I

    return-void
.end method

.method static synthetic access$25(Lcom/example/m6wmr/MarketActivity;)I
    .locals 1

    .prologue
    .line 83
    iget v0, p0, Lcom/example/m6wmr/MarketActivity;->pscostvalue:I

    return v0
.end method

.method static synthetic access$26(Lcom/example/m6wmr/MarketActivity;)I
    .locals 1

    .prologue
    .line 84
    iget v0, p0, Lcom/example/m6wmr/MarketActivity;->ordervalue:I

    return v0
.end method

.method static synthetic access$27(Lcom/example/m6wmr/MarketActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 88
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->searchvalue:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$28(Lcom/example/m6wmr/MarketActivity;)I
    .locals 1

    .prologue
    .line 85
    iget v0, p0, Lcom/example/m6wmr/MarketActivity;->shoptypevalue:I

    return v0
.end method

.method static synthetic access$29(Lcom/example/m6wmr/MarketActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 59
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->areaid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/MarketActivity;Z)V
    .locals 0

    .prologue
    .line 95
    iput-boolean p1, p0, Lcom/example/m6wmr/MarketActivity;->is_showpage:Z

    return-void
.end method

.method static synthetic access$30(Lcom/example/m6wmr/MarketActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->areals:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$31(Lcom/example/m6wmr/MarketActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 89
    iput-object p1, p0, Lcom/example/m6wmr/MarketActivity;->areamapname:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$32(Lcom/example/m6wmr/MarketActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 59
    iput-object p1, p0, Lcom/example/m6wmr/MarketActivity;->areaid:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$33(Lcom/example/m6wmr/MarketActivity;Landroid/view/View;)V
    .locals 0

    .prologue
    .line 720
    invoke-direct {p0, p1}, Lcom/example/m6wmr/MarketActivity;->initmapWindow(Landroid/view/View;)V

    return-void
.end method

.method static synthetic access$4(Lcom/example/m6wmr/MarketActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/MarketActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 87
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->shopls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/MarketActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 87
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->temshopls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/MarketActivity;)Lcom/wmr/Lstview/XListView;
    .locals 1

    .prologue
    .line 98
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/MarketActivity;Ldata/ShopData2;)V
    .locals 0

    .prologue
    .line 93
    iput-object p1, p0, Lcom/example/m6wmr/MarketActivity;->spbd:Ldata/ShopData2;

    return-void
.end method

.method static synthetic access$9(Lcom/example/m6wmr/MarketActivity;)Ldata/ShopData2;
    .locals 1

    .prologue
    .line 93
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->spbd:Ldata/ShopData2;

    return-object v0
.end method

.method private initmapWindow(Landroid/view/View;)V
    .locals 10
    .param p1, "parent"    # Landroid/view/View;

    .prologue
    const/4 v9, 0x0

    const/4 v8, -0x2

    .line 721
    move-object v3, p1

    .line 722
    .local v3, "myView":Landroid/view/View;
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    .line 723
    .local v2, "layoutInflater":Landroid/view/LayoutInflater;
    const v6, 0x7f0300b6

    invoke-virtual {v2, v6, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/MarketActivity;->myLoginView:Landroid/view/View;

    .line 724
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->myLoginView:Landroid/view/View;

    const v7, 0x7f0c0366

    invoke-virtual {v6, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 725
    .local v4, "selectview":Landroid/widget/LinearLayout;
    const-string v6, "Marketactivity"

    const-string v7, "\u52a0\u8f7d\u5207\u6362\u5730\u5740\u5f39\u51fa\u5c42"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 726
    invoke-virtual {v4}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 727
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->areals:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    if-lt v1, v6, :cond_0

    .line 761
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mScreenWidth:I

    .line 762
    new-instance v6, Landroid/widget/PopupWindow;

    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->myLoginView:Landroid/view/View;

    invoke-direct {v6, v7, v8, v8}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 763
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mScreenWidth:I

    .line 764
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindowWidth:I

    .line 765
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindowHeight:I

    .line 766
    return-void

    .line 729
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f030053

    invoke-static {v6, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v5

    .line 730
    .local v5, "tempview":Landroid/view/View;
    invoke-virtual {v5, v1}, Landroid/view/View;->setId(I)V

    .line 731
    const v6, 0x7f0c022c

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 732
    .local v0, "areaname":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->areals:Ljava/util/List;

    invoke-interface {v6, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lbean/AreaBean;

    invoke-virtual {v6}, Lbean/AreaBean;->getname()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 733
    invoke-virtual {v4, v5, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 734
    new-instance v6, Lcom/example/m6wmr/MarketActivity$15;

    invoke-direct {v6, p0, v3}, Lcom/example/m6wmr/MarketActivity$15;-><init>(Lcom/example/m6wmr/MarketActivity;Landroid/view/View;)V

    invoke-virtual {v5, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 727
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method private initorderbyWindow()V
    .locals 9

    .prologue
    const/4 v8, 0x0

    .line 556
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    .line 557
    .local v1, "layoutInflater":Landroid/view/LayoutInflater;
    const v6, 0x7f0300b6

    invoke-virtual {v1, v6, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 558
    .local v2, "popupWindow":Landroid/view/View;
    const v6, 0x7f0c0366

    invoke-virtual {v2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 559
    .local v3, "selectview":Landroid/widget/LinearLayout;
    const-string v6, "Marketactivity"

    const-string v7, "\u52a0\u8f7d\u6392\u5e8f\u5206\u7c7b\u5f39\u51fa\u5c42"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 560
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->orderlist:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    if-lt v0, v6, :cond_0

    .line 587
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mScreenWidth:I

    .line 588
    new-instance v6, Landroid/widget/PopupWindow;

    iget v7, p0, Lcom/example/m6wmr/MarketActivity;->orderbypopwidth:I

    const/4 v8, -0x2

    invoke-direct {v6, v2, v7, v8}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 589
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mScreenWidth:I

    .line 590
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindowWidth:I

    .line 591
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindowHeight:I

    .line 592
    return-void

    .line 562
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f0300b4

    invoke-static {v6, v7, v8}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 563
    .local v4, "tempview":Landroid/view/View;
    invoke-virtual {v4, v0}, Landroid/view/View;->setId(I)V

    .line 564
    const v6, 0x7f0c0013

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 565
    .local v5, "textView1":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->orderlist:Ljava/util/List;

    invoke-interface {v6, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/CharSequence;

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 566
    invoke-virtual {v3, v4, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 568
    new-instance v6, Lcom/example/m6wmr/MarketActivity$12;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/MarketActivity$12;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v4, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 560
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private initpscostWindow()V
    .locals 9

    .prologue
    const/4 v8, 0x0

    .line 595
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    .line 596
    .local v1, "layoutInflater":Landroid/view/LayoutInflater;
    const v6, 0x7f0300b6

    invoke-virtual {v1, v6, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 597
    .local v2, "popupWindow":Landroid/view/View;
    const v6, 0x7f0c0366

    invoke-virtual {v2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 598
    .local v3, "selectview":Landroid/widget/LinearLayout;
    const-string v6, "Marketactivity"

    const-string v7, "\u52a0\u8f7d\u914d\u9001\u5206\u7c7b\u5f39\u51fa\u5c42"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 600
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->pscostlist:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    if-lt v0, v6, :cond_0

    .line 626
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mScreenWidth:I

    .line 627
    new-instance v6, Landroid/widget/PopupWindow;

    iget v7, p0, Lcom/example/m6wmr/MarketActivity;->pscostpopwidth:I

    const/4 v8, -0x2

    invoke-direct {v6, v2, v7, v8}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 628
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mScreenWidth:I

    .line 629
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindowWidth:I

    .line 630
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindowHeight:I

    .line 631
    return-void

    .line 602
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f0300b4

    invoke-static {v6, v7, v8}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 603
    .local v4, "tempview":Landroid/view/View;
    invoke-virtual {v4, v0}, Landroid/view/View;->setId(I)V

    .line 604
    const v6, 0x7f0c0013

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 605
    .local v5, "textView1":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->pscostlist:Ljava/util/List;

    invoke-interface {v6, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/CharSequence;

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 606
    invoke-virtual {v3, v4, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 607
    new-instance v6, Lcom/example/m6wmr/MarketActivity$13;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/MarketActivity$13;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v4, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 600
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private initshoptypeWindow()V
    .locals 10

    .prologue
    const/4 v9, 0x0

    .line 505
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    .line 506
    .local v2, "layoutInflater":Landroid/view/LayoutInflater;
    const v7, 0x7f0300b6

    invoke-virtual {v2, v7, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 507
    .local v3, "popupWindow":Landroid/view/View;
    const v7, 0x7f0c0366

    invoke-virtual {v3, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 510
    .local v4, "selectview":Landroid/widget/LinearLayout;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->shoptypels:Ljava/util/List;

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    if-lt v1, v7, :cond_0

    .line 544
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v7

    invoke-interface {v7}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v7

    invoke-virtual {v7}, Landroid/view/Display;->getWidth()I

    move-result v7

    iput v7, p0, Lcom/example/m6wmr/MarketActivity;->mScreenWidth:I

    .line 546
    new-instance v7, Landroid/widget/PopupWindow;

    iget v8, p0, Lcom/example/m6wmr/MarketActivity;->shoptypepopwidth:I

    const/4 v9, -0x2

    invoke-direct {v7, v3, v8, v9}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v7, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 550
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v7

    invoke-interface {v7}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v7

    invoke-virtual {v7}, Landroid/view/Display;->getHeight()I

    move-result v7

    iput v7, p0, Lcom/example/m6wmr/MarketActivity;->mScreenWidth:I

    .line 551
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v7}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v7

    iput v7, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindowWidth:I

    .line 552
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v7}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v7

    iput v7, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindowHeight:I

    .line 553
    return-void

    .line 512
    :cond_0
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->mcontext:Landroid/content/Context;

    const v8, 0x7f0300b4

    invoke-static {v7, v8, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v5

    .line 513
    .local v5, "tempview":Landroid/view/View;
    invoke-virtual {v5, v1}, Landroid/view/View;->setId(I)V

    .line 514
    const v7, 0x7f0c0013

    invoke-virtual {v5, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 515
    .local v6, "textView1":Landroid/widget/TextView;
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->shoptypels:Ljava/util/List;

    invoke-interface {v7, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/ShoptypeBean;

    .line 516
    .local v0, "bbc":Lbean/ShoptypeBean;
    invoke-virtual {v0}, Lbean/ShoptypeBean;->getname()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 517
    invoke-virtual {v4, v5, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 519
    new-instance v7, Lcom/example/m6wmr/MarketActivity$11;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/MarketActivity$11;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v5, v7}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 510
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method private onLoad()V
    .locals 2

    .prologue
    .line 803
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopRefresh()V

    .line 804
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopLoadMore()V

    .line 805
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->GetTime()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setRefreshTime(Ljava/lang/String;)V

    .line 806
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6wmr/MarketActivity;->is_loading:Z

    .line 807
    return-void
.end method


# virtual methods
.method public GetTime()Ljava/lang/String;
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SimpleDateFormat"
        }
    .end annotation

    .prologue
    .line 832
    new-instance v1, Ljava/text/SimpleDateFormat;

    .line 833
    const-string v2, "yyyy-MM-dd    hh:mm:ss"

    .line 832
    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 834
    .local v1, "sDateFormat":Ljava/text/SimpleDateFormat;
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    .line 835
    .local v0, "date":Ljava/lang/String;
    return-object v0
.end method

.method public Inishop()V
    .locals 0

    .prologue
    .line 502
    return-void
.end method

.method public areaCount(I)J
    .locals 6
    .param p1, "parentid"    # I

    .prologue
    .line 768
    const-wide/16 v1, 0x0

    .line 769
    .local v1, "shu":J
    iget-object v3, p0, Lcom/example/m6wmr/MarketActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v3}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v3

    .line 770
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "select count(*) from area where parent_id="

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    .line 769
    invoke-virtual {v3, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    .line 772
    :try_start_0
    iget-object v3, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->moveToFirst()Z

    .line 773
    iget-object v3, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    const/4 v4, 0x0

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-wide v1

    .line 777
    iget-object v3, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v3, :cond_0

    .line 778
    iget-object v3, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    .line 782
    :cond_0
    :goto_0
    return-wide v1

    .line 774
    :catch_0
    move-exception v0

    .line 775
    .local v0, "e":Ljava/lang/Exception;
    :try_start_1
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 777
    iget-object v3, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v3, :cond_0

    .line 778
    iget-object v3, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    goto :goto_0

    .line 776
    .end local v0    # "e":Ljava/lang/Exception;
    :catchall_0
    move-exception v3

    .line 777
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v4, :cond_1

    .line 778
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v4}, Landroid/database/Cursor;->close()V

    .line 780
    :cond_1
    throw v3
.end method

.method public bindbtn()V
    .locals 9

    .prologue
    .line 358
    const v7, 0x7f0c0001

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 359
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v7, Lcom/example/m6wmr/MarketActivity$2;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/MarketActivity$2;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v0, v7}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 366
    const v7, 0x7f0c009c

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    .line 367
    .local v3, "searchbtn":Landroid/widget/ImageView;
    new-instance v7, Lcom/example/m6wmr/MarketActivity$3;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/MarketActivity$3;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 408
    const v7, 0x7f0c0145

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    .line 409
    .local v1, "mapbtn":Landroid/widget/Button;
    new-instance v7, Lcom/example/m6wmr/MarketActivity$4;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/MarketActivity$4;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v1, v7}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 420
    const v7, 0x7f0c0146

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    iput-object v7, p0, Lcom/example/m6wmr/MarketActivity;->shoptype:Landroid/widget/LinearLayout;

    .line 421
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->shoptype:Landroid/widget/LinearLayout;

    new-instance v8, Lcom/example/m6wmr/MarketActivity$5;

    invoke-direct {v8, p0}, Lcom/example/m6wmr/MarketActivity$5;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v7, v8}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 436
    const v7, 0x7f0c0148

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    iput-object v7, p0, Lcom/example/m6wmr/MarketActivity;->orderby:Landroid/widget/LinearLayout;

    .line 437
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->orderby:Landroid/widget/LinearLayout;

    new-instance v8, Lcom/example/m6wmr/MarketActivity$6;

    invoke-direct {v8, p0}, Lcom/example/m6wmr/MarketActivity$6;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v7, v8}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 451
    const v7, 0x7f0c014a

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    iput-object v7, p0, Lcom/example/m6wmr/MarketActivity;->pscost:Landroid/widget/LinearLayout;

    .line 452
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->pscost:Landroid/widget/LinearLayout;

    new-instance v8, Lcom/example/m6wmr/MarketActivity$7;

    invoke-direct {v8, p0}, Lcom/example/m6wmr/MarketActivity$7;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v7, v8}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 468
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->shoptype:Landroid/widget/LinearLayout;

    invoke-virtual {v7}, Landroid/widget/LinearLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v4

    .line 469
    .local v4, "vto":Landroid/view/ViewTreeObserver;
    new-instance v7, Lcom/example/m6wmr/MarketActivity$8;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/MarketActivity$8;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v4, v7}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    .line 476
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->orderby:Landroid/widget/LinearLayout;

    invoke-virtual {v7}, Landroid/widget/LinearLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v5

    .line 477
    .local v5, "vto2":Landroid/view/ViewTreeObserver;
    new-instance v7, Lcom/example/m6wmr/MarketActivity$9;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/MarketActivity$9;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v5, v7}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    .line 484
    iget-object v7, p0, Lcom/example/m6wmr/MarketActivity;->pscost:Landroid/widget/LinearLayout;

    invoke-virtual {v7}, Landroid/widget/LinearLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v6

    .line 485
    .local v6, "vto3":Landroid/view/ViewTreeObserver;
    new-instance v7, Lcom/example/m6wmr/MarketActivity$10;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/MarketActivity$10;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    invoke-virtual {v6, v7}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    .line 493
    const v7, 0x7f0c0016

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/example/location/BottomMenu;

    .line 494
    .local v2, "menu":Lcom/example/location/BottomMenu;
    const-string v7, "index"

    invoke-virtual {v2, v7}, Lcom/example/location/BottomMenu;->SetOn(Ljava/lang/String;)V

    .line 496
    return-void
.end method

.method public getShopSource()Z
    .locals 1

    .prologue
    .line 635
    new-instance v0, Lcom/example/m6wmr/MarketActivity$14;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/MarketActivity$14;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    .line 716
    invoke-virtual {v0}, Lcom/example/m6wmr/MarketActivity$14;->start()V

    .line 717
    const/4 v0, 0x0

    return v0
.end method

.method public getarearr(I)V
    .locals 7
    .param p1, "parentid"    # I

    .prologue
    .line 331
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v4}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v4

    .line 332
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "select * from area where parent_id ="

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x0

    .line 331
    invoke-virtual {v4, v5, v6}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v4

    iput-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    .line 333
    const-string v4, "Marketactivity"

    const-string v5, "\u83b7\u53d6\u533a\u57df\u6570\u636e"

    invoke-static {v4, v5}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 334
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->areals:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->clear()V

    .line 336
    :try_start_0
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v4, :cond_0

    .line 337
    :goto_0
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v4}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v4

    if-nez v4, :cond_2

    .line 352
    :cond_0
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v4, :cond_1

    .line 353
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v4}, Landroid/database/Cursor;->close()V

    .line 356
    :cond_1
    :goto_1
    return-void

    .line 338
    :cond_2
    :try_start_1
    new-instance v1, Lbean/AreaBean;

    invoke-direct {v1}, Lbean/AreaBean;-><init>()V

    .line 339
    .local v1, "bb":Lbean/AreaBean;
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    const-string v6, "id"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    .line 340
    .local v0, "_id":I
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    const-string v6, "parent_id"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getInt(I)I

    move-result v3

    .line 341
    .local v3, "parent_id":I
    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lbean/AreaBean;->setId(Ljava/lang/String;)V

    .line 342
    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lbean/AreaBean;->setparent_id(Ljava/lang/String;)V

    .line 343
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    const-string v6, "name"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lbean/AreaBean;->setname(Ljava/lang/String;)V

    .line 344
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    const-string v6, "lng"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lbean/AreaBean;->setlng(Ljava/lang/String;)V

    .line 345
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    const-string v6, "lat"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lbean/AreaBean;->setlng(Ljava/lang/String;)V

    .line 346
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->areals:Ljava/util/List;

    invoke-interface {v4, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 349
    .end local v0    # "_id":I
    .end local v1    # "bb":Lbean/AreaBean;
    .end local v3    # "parent_id":I
    :catch_0
    move-exception v2

    .line 350
    .local v2, "e":Ljava/lang/Exception;
    :try_start_2
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 352
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v4, :cond_1

    .line 353
    iget-object v4, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v4}, Landroid/database/Cursor;->close()V

    goto :goto_1

    .line 351
    .end local v2    # "e":Ljava/lang/Exception;
    :catchall_0
    move-exception v4

    .line 352
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v5, :cond_3

    .line 353
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v5}, Landroid/database/Cursor;->close()V

    .line 355
    :cond_3
    throw v4
.end method

.method public gettypearr()V
    .locals 8

    .prologue
    .line 298
    new-instance v2, Lbean/ShoptypeBean;

    invoke-direct {v2}, Lbean/ShoptypeBean;-><init>()V

    .line 299
    .local v2, "bb2":Lbean/ShoptypeBean;
    const-string v5, "0"

    invoke-virtual {v2, v5}, Lbean/ShoptypeBean;->setId(Ljava/lang/String;)V

    .line 300
    const-string v5, "\u6240\u6709\u5206\u7c7b"

    invoke-virtual {v2, v5}, Lbean/ShoptypeBean;->setname(Ljava/lang/String;)V

    .line 301
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->shoptypels:Ljava/util/List;

    invoke-interface {v5, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 303
    :try_start_0
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v5}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    .line 304
    const-string v6, "select * from shoptype where cattype = 1"

    const/4 v7, 0x0

    .line 303
    invoke-virtual {v5, v6, v7}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    .line 305
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v5, :cond_0

    .line 306
    :goto_0
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v5}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v5

    if-nez v5, :cond_2

    .line 323
    :cond_0
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v5, :cond_1

    .line 324
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v5}, Landroid/database/Cursor;->close()V

    .line 328
    :cond_1
    :goto_1
    return-void

    .line 307
    :cond_2
    :try_start_1
    new-instance v1, Lbean/ShoptypeBean;

    invoke-direct {v1}, Lbean/ShoptypeBean;-><init>()V

    .line 308
    .local v1, "bb":Lbean/ShoptypeBean;
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    const-string v7, "id"

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v6

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    .line 309
    .local v0, "_id":I
    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Lbean/ShoptypeBean;->setId(Ljava/lang/String;)V

    .line 310
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    const-string v7, "name"

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v6

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Lbean/ShoptypeBean;->setname(Ljava/lang/String;)V

    .line 311
    iget v5, p0, Lcom/example/m6wmr/MarketActivity;->shoptypevalue:I

    if-lez v5, :cond_3

    .line 312
    iget v5, p0, Lcom/example/m6wmr/MarketActivity;->shoptypevalue:I

    if-ne v0, v5, :cond_3

    .line 313
    const v5, 0x7f0c0147

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 314
    .local v4, "shoptypename":Landroid/widget/TextView;
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    const-string v7, "name"

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v6

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 317
    .end local v4    # "shoptypename":Landroid/widget/TextView;
    :cond_3
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->shoptypels:Ljava/util/List;

    invoke-interface {v5, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 320
    .end local v0    # "_id":I
    .end local v1    # "bb":Lbean/ShoptypeBean;
    :catch_0
    move-exception v3

    .line 321
    .local v3, "e":Ljava/lang/Exception;
    :try_start_2
    invoke-virtual {v3}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 323
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v5, :cond_1

    .line 324
    iget-object v5, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v5}, Landroid/database/Cursor;->close()V

    goto :goto_1

    .line 322
    .end local v3    # "e":Ljava/lang/Exception;
    :catchall_0
    move-exception v5

    .line 323
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v6, :cond_4

    .line 324
    iget-object v6, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    .line 326
    :cond_4
    throw v5
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 10
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 101
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 102
    const v8, 0x7f03003a

    invoke-virtual {p0, v8}, Lcom/example/m6wmr/MarketActivity;->setContentView(I)V

    .line 104
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v8

    check-cast v8, Lmyapp/MyApp;

    iput-object v8, p0, Lcom/example/m6wmr/MarketActivity;->m:Lmyapp/MyApp;

    .line 105
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v8}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 106
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 108
    iput-object p0, p0, Lcom/example/m6wmr/MarketActivity;->mcontext:Landroid/content/Context;

    .line 109
    sput-object p0, Lcom/example/m6wmr/MarketActivity;->market:Lcom/example/m6wmr/MarketActivity;

    .line 110
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->orderlist:Ljava/util/List;

    const-string v9, "\u9ed8\u8ba4"

    invoke-interface {v8, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 111
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->orderlist:Ljava/util/List;

    const-string v9, "\u8ddd\u79bb"

    invoke-interface {v8, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 112
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->orderlist:Ljava/util/List;

    const-string v9, "\u8d77\u9001\u4ef7"

    invoke-interface {v8, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 113
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->orderlist:Ljava/util/List;

    const-string v9, "\u63a8\u8350"

    invoke-interface {v8, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 114
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->pscostlist:Ljava/util/List;

    const-string v9, "\u4e0d\u9650\u8d77\u9001\u4ef7"

    invoke-interface {v8, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 115
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->pscostlist:Ljava/util/List;

    const-string v9, "\u4f4e\u4e8e5\u5143"

    invoke-interface {v8, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 116
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->pscostlist:Ljava/util/List;

    const-string v9, "5\u5143\u523010\u5143"

    invoke-interface {v8, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 117
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->pscostlist:Ljava/util/List;

    const-string v9, "10\u5143\u4ee5\u4e0a"

    invoke-interface {v8, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 119
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    .line 120
    .local v2, "intent":Landroid/content/Intent;
    const-string v8, "sendid"

    invoke-virtual {v2, v8}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, p0, Lcom/example/m6wmr/MarketActivity;->sendid:Ljava/lang/String;

    .line 122
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->sendid:Ljava/lang/String;

    if-eqz v8, :cond_0

    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->sendid:Ljava/lang/String;

    const-string v9, "0"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_2

    .line 123
    :cond_0
    const/4 v8, 0x0

    iput v8, p0, Lcom/example/m6wmr/MarketActivity;->shoptypevalue:I

    .line 128
    :goto_0
    new-instance v8, Ljava/util/ArrayList;

    invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V

    iput-object v8, p0, Lcom/example/m6wmr/MarketActivity;->shoptypels:Ljava/util/List;

    .line 129
    new-instance v8, Ljava/util/ArrayList;

    invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V

    iput-object v8, p0, Lcom/example/m6wmr/MarketActivity;->areals:Ljava/util/List;

    .line 130
    new-instance v8, Ljava/util/ArrayList;

    invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V

    iput-object v8, p0, Lcom/example/m6wmr/MarketActivity;->shopls:Ljava/util/List;

    .line 131
    new-instance v8, Ljava/util/ArrayList;

    invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V

    iput-object v8, p0, Lcom/example/m6wmr/MarketActivity;->temshopls:Ljava/util/List;

    .line 133
    const/high16 v8, 0x7f0c0000

    invoke-virtual {p0, v8}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    .line 134
    .local v7, "top":Landroid/widget/LinearLayout;
    const v8, 0x7f0c0145

    invoke-virtual {p0, v8}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/Button;

    .line 135
    .local v3, "mapbtn":Landroid/widget/Button;
    const v8, 0x7f0c0143

    invoke-virtual {p0, v8}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 136
    .local v1, "imageView3":Landroid/widget/ImageView;
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v8}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v8

    const-string v9, "1"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 137
    const v8, 0x7f070026

    invoke-virtual {v7, v8}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 138
    const v8, -0xbf2a71

    invoke-virtual {v3, v8}, Landroid/widget/Button;->setBackgroundColor(I)V

    .line 139
    const v8, 0x7f020022

    invoke-virtual {v1, v8}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 142
    :cond_1
    const v8, 0x7f0c0144

    invoke-virtual {p0, v8}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 143
    .local v4, "mapnametext":Landroid/widget/TextView;
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->m:Lmyapp/MyApp;

    iget-boolean v8, v8, Lmyapp/MyApp;->Ismap:Z

    if-nez v8, :cond_3

    .line 144
    const-string v8, "\u5b9a\u4f4d\u5931\u8d25"

    invoke-virtual {v4, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 149
    :goto_1
    const v8, 0x7f0c0057

    invoke-virtual {p0, v8}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Lcom/wmr/Lstview/XListView;

    iput-object v8, p0, Lcom/example/m6wmr/MarketActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    .line 150
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    const/4 v9, 0x1

    invoke-virtual {v8, v9}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 151
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v8, p0}, Lcom/wmr/Lstview/XListView;->setXListViewListener(Lcom/wmr/Lstview/XListView$IXListViewListener;)V

    .line 152
    new-instance v8, Lcom/example/m6wmr/MarketActivity$1;

    invoke-direct {v8, p0}, Lcom/example/m6wmr/MarketActivity$1;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    sput-object v8, Lcom/example/m6wmr/MarketActivity;->h:Landroid/os/Handler;

    .line 246
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->bindbtn()V

    .line 250
    const v8, 0x7f0c0142

    invoke-virtual {p0, v8}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 251
    .local v5, "shoplistname":Landroid/widget/TextView;
    const-string v8, "\u8d85\u5e02\u5217\u8868"

    invoke-virtual {v5, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 252
    new-instance v8, Ldbclass/DBOpenHelper;

    iget-object v9, p0, Lcom/example/m6wmr/MarketActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v8, v9}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v8, p0, Lcom/example/m6wmr/MarketActivity;->helper:Ldbclass/DBOpenHelper;

    .line 253
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v8}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v8

    iput-object v8, p0, Lcom/example/m6wmr/MarketActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 254
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->gettypearr()V

    .line 258
    const-string v8, "marketACtivity"

    const-string v9, " -------------------"

    invoke-static {v8, v9}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 261
    const v8, 0x7f0c0146

    invoke-virtual {p0, v8}, Lcom/example/m6wmr/MarketActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/LinearLayout;

    .line 263
    .local v6, "shoptypeLL":Landroid/widget/LinearLayout;
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->getShopSource()Z

    .line 265
    return-void

    .line 125
    .end local v1    # "imageView3":Landroid/widget/ImageView;
    .end local v3    # "mapbtn":Landroid/widget/Button;
    .end local v4    # "mapnametext":Landroid/widget/TextView;
    .end local v5    # "shoplistname":Landroid/widget/TextView;
    .end local v6    # "shoptypeLL":Landroid/widget/LinearLayout;
    .end local v7    # "top":Landroid/widget/LinearLayout;
    :cond_2
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity;->sendid:Ljava/lang/String;

    invoke-static {v8}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v8

    iput v8, p0, Lcom/example/m6wmr/MarketActivity;->shoptypevalue:I

    goto/16 :goto_0

    .line 146
    .restart local v1    # "imageView3":Landroid/widget/ImageView;
    .restart local v3    # "mapbtn":Landroid/widget/Button;
    .restart local v4    # "mapnametext":Landroid/widget/TextView;
    .restart local v7    # "top":Landroid/widget/LinearLayout;
    :cond_3
    sget-object v8, Lmyapp/MyApp;->mapnameParticular:Ljava/lang/String;

    invoke-virtual {v4, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 787
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 790
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    if-eqz v0, :cond_0

    .line 791
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    .line 793
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_1

    .line 794
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 796
    :cond_1
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_2

    .line 797
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 800
    :cond_2
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 856
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 857
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketActivity;->finish()V

    .line 860
    :cond_0
    return v1
.end method

.method public onLoadMore()V
    .locals 4

    .prologue
    .line 841
    iget-boolean v0, p0, Lcom/example/m6wmr/MarketActivity;->is_loading:Z

    if-nez v0, :cond_0

    .line 842
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/example/m6wmr/MarketActivity;->is_loading:Z

    .line 843
    iget v0, p0, Lcom/example/m6wmr/MarketActivity;->page:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/MarketActivity;->page:I

    .line 845
    sget-object v0, Lcom/example/m6wmr/MarketActivity;->h:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/MarketActivity$17;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/MarketActivity$17;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    .line 850
    const-wide/16 v2, 0x1f4

    .line 845
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 853
    :cond_0
    return-void
.end method

.method public onRefresh()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    .line 812
    iget-boolean v0, p0, Lcom/example/m6wmr/MarketActivity;->is_loading:Z

    if-nez v0, :cond_0

    .line 813
    iput-boolean v1, p0, Lcom/example/m6wmr/MarketActivity;->is_loading:Z

    .line 814
    iput v1, p0, Lcom/example/m6wmr/MarketActivity;->page:I

    .line 815
    iget-object v0, p0, Lcom/example/m6wmr/MarketActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 817
    sget-object v0, Lcom/example/m6wmr/MarketActivity;->h:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/MarketActivity$16;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/MarketActivity$16;-><init>(Lcom/example/m6wmr/MarketActivity;)V

    .line 825
    const-wide/16 v2, 0x1f4

    .line 817
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 827
    :cond_0
    return-void
.end method
